package com.bigmi.apis.article;

import com.bigmi.apis.article.fallback.ArticleClientIpFallback;
import com.bigmi.model.article.Dto.ArticleDto;
import com.bigmi.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 文章端对外接口
 */
@FeignClient(value = "newsweb-article",fallback = ArticleClientIpFallback.class)
public interface ArticleClientIp {
    @PostMapping("api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto articleDto);
    @PostMapping("api/v1/article/upDown")
    public ResponseResult upAndDown(Long articleId);
    @PostMapping("api/v1/article/del")
    public ResponseResult del(@RequestBody Long articleId);
}
